<?
include("session.php");
include("../webkit/include/simple_db.php");
$uid = $_SESSION['uid'];
$pwd = $_POST['new_password'];
$db = new SimpleDB();
$db->query("update jx_user set userpass='$pwd' where username='$uid'");
echo "ok";
?>